﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;

namespace HMS.Common
{
    public class Functions
    {
        public static DateTime GetDate(string date)
        {
            var CI = new CultureInfo("en-US");
            DateTime dt = Convert.ToDateTime(date, CI);
            return dt;
        }
    }
    public class Constants
    {
        public const string CONNECTION_STRING = "TreeConnectionString";
        public const string CONNECTION_STRING_EXCEL = "TreeConnectionStringExcel";
        public const string LOGINURL_KEY = "LoginUrl";
        public const string AUTHENTICATION_COOKIE_KEY = "CookieName";
        public const string AUTHENTICATION_COOKIE_EXPIRATION_KEY = "CookieTimeout";
    }

    public class Records
    {
       
        public int NewId { get; set; }
        public int RecordCount { get; set; }
        public Records()
        {
        }

        public Records(int RecordCount)
        {
            this.RecordCount = RecordCount;
        }

        public Records(int RecordCount, int NewId)
        {
            this.RecordCount = RecordCount;
            this.NewId = NewId;
        }
    }
}
